home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / CDTV / cdtvtools-11 / keeper / keeper.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-06-24  |  1.0 KB  |  30 lines

  1. #include <exec/types.h>
  2. #include <graphics/gfx.h>
  3. #include <libraries/dos.h>
  4.  
  5. #define DBG           0
  6.  
  7. #define CHIPBASE      ((struct Custom *)0x00DFF000)
  8. #define until(x)      while(!(x))
  9. #define unless(x)     if (!(x))
  10.  
  11. /*
  12. **  the structure used to track a resident bitmap -- expand or shrink
  13. **  as neccessary to include more or less PLANEPTRs
  14. */
  15. struct BLITmap
  16. {
  17.   short w;        /* bitmap pixel width                           */
  18.   short h;        /* bitmap pixel height                          */
  19.   short d;        /* bitmap depth (number of planes)              */
  20.   short wpl;      /* data words per bitmap line                   */
  21.   ULONG modes;    /* video modes bits                             */
  22.   UWORD cmap[32]; /* color map                                    */
  23.   PLANEPTR m;     /* optional mask plane (built algorithmically)  */
  24.   PLANEPTR p[8];  /* pointers to individual planes                */
  25. };
  26.  
  27. extern struct BLITmap *loadILBM(char *);
  28. extern void unloadILBM(struct BLITmap *);
  29. extern void BLITmap2BitMap(struct BLITmap *,struct BitMap *);
  30.